const Koa = require('koa');
const app = new Koa();
const pug = require('pug');
const {pugTpl}= require('./template/index.js');
app.use(async(ctx,next)=>{
    ctx.type='text/html;charset=uft-8'
    ctx.body = pug.render(pugTpl,{
        name:"江炜"
    })
})
app.listen(8080)